#pragma once
#include <WinSock2.h>
#include <string>

using namespace std;

class Server;

class ServerClient
{
	string name;	
	SOCKET* clientSocket;
	Server* server;

	static DWORD WINAPI run(LPVOID pvParam);
public:
	ServerClient(string,SOCKET*,Server*);
	~ServerClient(void);
	bool listen();
	void Send(char *);
	void start();
	void disconnect();
	string getName();
};

